package com.hevs.samplewebapp.client.bean;

/**
 * Medical data for the client
 * <p>It provides to the client side a medical data same as the server side entity without the annotations.</p> 
 * @author Lionel Rey
 * @date 26.03.2012
 */
public class MedicalDataItem
{
	// ------------------------------------------------------------
	// VARIABLES
	// ------------------------------------------------------------
	
	/**
	 * Id of the medical record
	 */
	private String id;
	
	/**
	 * Value of the medical record
	 */
	private double value;
	
	/**
	 * date of the medical record when the user take the measure
	 */
	private String date;
	
	/**
	 * category of time when the measure was taken
	 */
	private int category;
	
	/**
	 * type of medical record
	 */
	private int type;

	// ------------------------------------------------------------
	// CONSTRUCTORS
	// ------------------------------------------------------------

	/**
	 * Constructor of the medical record without parameter
	 */
	public MedicalDataItem(){};

	/**
	 * Constructor of the medical data with the id
	 * @param id
	 * 	id of the medical record
	 * @param value
	 * 	value of the medical record
	 * @param date
	 * 	date of the medical record
	 * @param category
	 * 	category of the medical record
	 * @param type
	 *  type of the medical record
	 */
	public MedicalDataItem(String id, double value, String date, int category, int type)
	{	
		this.id = id;
		this.value= value;
		this.category = category;
		this.type = type;
		this.date = date;
	}

	/**
	 * Constructor of the medical record without id
	 * @param value
	 * 	value of the medical record
	 * @param date
	 * 	date of the medical record
	 * @param category
	 * 	category of the medical record
	 * @param type
	 * 	type of the medical record
	 */
	public MedicalDataItem(double value, String date, int category, int type){
		this.value= value;
		this.category = category;
		this.type = type;
		this.date = date;
	}

	// ------------------------------------------------------------
	// METHODS
	// ------------------------------------------------------------

	/**
	 * Getter of the Id
	 * @return
	 * 	String version of the Id
	 */
	public String getId() {
		return id;
	}

	/**
	 * Setter of the Id
	 * @param id
	 * 	String version of the Id
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * Getter of the Value
	 * @return
	 * 	Double version of the Value
	 */
	public double getValue() {
		return value;
	}

	/**
	 * Setter of the Value
	 * @param value
	 * 	Double version of the Value
	 */
	public void setValue(double value) {
		this.value = value;
	}

	/**
	 * Getter of the Date
	 * @return
	 * 	String version of the Date
	 */
	public String getDate() {
		return date;
	}

	/**
	 * Setter of the date
	 * @param date
	 * 	String version of the Date
	 */
	public void setDate(String date) {
		this.date = date;
	}

	/**
	 * Getter of the Category
	 * @return
	 * 	Int version of the Category
	 */
	public int getCategory() {
		return category;
	}

	/**
	 * Setter of the Category
	 * @param category
	 * 	Int version of the Category
	 */
	public void setCategory(int category) {
		this.category = category;
	}

	/**
	 * Getter of the Type
	 * @return
	 * 	Int version of the Type
	 */
	public int getType() {
		return type;
	}

	/**
	 * Setter of the Type
	 * @param type
	 * 	Int version of the Type
	 */
	public void setType(int type) {
		this.type = type;
	}	
}
